import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

export default new VueRouter({
  mode: 'hash',
  // 将所有的路由和路由信息都注册到路由表里,这就叫所谓的[静态路由]
  routes: [
    { path: '/', component: () => import('../components/A.vue') },
    { path: '/b', component: () => import('../components/B.vue') },
    { path: '/c', component: () => import('../components/C.vue') },
    { path: '/d', component: () => import('../components/D.vue') }
  ]
})

